<ion-view>

	<div class="searchwarp">
		<div class="item-input-inset">
			<label class="item-input-wrapper searchinput">
		    <i class="icon ion-ios-search placeholder-icon"></i>
		    <input id="searchipt" type="search" placeholder="Search">
		  </label>
			<button ng-click="searchbtn()" class="button">
		   搜索
		  </button>
		</div>
		<ul class="order_warp" ng-show="isshowOrder">
			<li class="o_active"><span>默认</span></li> 
			<li><span>销量</span></li>
			<li><span>价格<span class="icon ion-ios-arrow-thin-up"></span></span>
			</li>
			<li><span>价格<span class="icon ion-ios-arrow-thin-down"></span></span>
			</li>
		</ul>
	</div>
	<ion-content class="search">

		<section class="searchkey" ng-show="isshowgoods" ng-if="keygoods.goods">
			<h3>热搜关键词</h3>
			<ul>
				<li ng-repeat="(i,goods) in keygoods.goods" ng-click="licick(i)">
					{{goods}}
				</li>
				<li class="empty"></li>
				<li class="empty"></li>
				<li class="empty"></li>
			</ul>
		
		</section>

		<main>
			<ul class="search_goods" ng-show="!isshowgoods" ng-if="search.goodsList">
				<li ng-repeat="result in search.goodsList">
					<img src="https://image1.ichuanyi.cn/{{result.image}}?imageMogr2/thumbnail/!370x490r/gravity/Center/crop/370x490" alt="{{result.name}}" />
					<p>{{result.name}}</p>
					<p style="font-weight: bold;">￥{{result.price}}</p>
				</li>
			</ul>
			<p style="padding-top: 150px; text-align: center;" ng-show="!search.goodsList" >
				{{search.tip.name}}
			</p>
		</main>
	</ion-content>
</ion-view>